const fs = require("fs");

// 创建写入流
const ws = fs.createWriteStream('./data.test.txt');


// 写入
ws.write('你好\r\n')
ws.write('123\r\n')

// 关闭写入流
ws.close()

